/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ships.io.events;

import java.util.EventListener;
import ships.io.ImageReader;


/**
 *
 * @author fqhuy
 */
public interface IIOReadWarningListener extends EventListener {

    /**
     * Reports the occurence of a non-fatal error in decoding.  Decoding
     * will continue following the call to this method.  The application
     * may choose to display a dialog, print the warning to the console,
     * ignore the warning, or take any other action it chooses.
     *
     * @param source the <code>ImageReader</code> object calling this method.
     * @param warning a <code>String</code> containing the warning.
     */
    void warningOccurred(ImageReader source, String warning);
}
